
#include <machine/asm.h>
ENTRY(strcpy)
	pushl	%esi
	pushl	%edi
	movl	12(%esp), %edi
	movl	16(%esp), %esi
	pushl	%edi
1:
	lodsb
	stosb
	testb	%al, %al
	jne 1b
	popl	%eax
	popl	%edi
	popl	%esi
	ret
END(strcpy)
